﻿<DataObjects:EntityControlBase 
    x:Class="DiscoveryLogic.Analytics.Modules.Nodes.SubjectNode"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:DataObjects="clr-namespace:DiscoveryLogic.Analytics.DataObjects;assembly=Analytics.DataObjects"
    Height="Auto" Width="Auto" Loaded="UserControl_Loaded">         
    <DataObjects:EntityControlBase.ContextMenu>
    <ContextMenu>
        <MenuItem
				Name="cmu_ExplorePersons"
				Header="-> publications" 
				Tag="../images/User.png" 
                Click="cmu_ExplorePersons_Click"/>
        <MenuItem 
				Name="cmu_ExplorePublications"
				Header="-> organizations" 
				Tag="../images/doc.png" 
                Click="cmu_ExplorePublications_Click"/>
        <MenuItem 
				Name="cmu_ExploreGrants"
				Header="-> persons" 
				Tag="../images/Tools.png" 
                Click="cmu_ExploreGrants_Click"/>
        <Separator/>
        <MenuItem
                Name="cmu_DefineNewRule"
                Header="New relation rule"
                Tag="/images/rule.ico"
                Click="cmu_DefineNewRule_Click"/>
    </ContextMenu>
    </DataObjects:EntityControlBase.ContextMenu>
    <DataObjects:EntityControlBase.ToolTip>
        <TextBlock Text="{Binding Path=Name}"></TextBlock>
    </DataObjects:EntityControlBase.ToolTip>
    <Grid>
        <StackPanel Orientation="Vertical">
            <Border 
                x:Name="border1" Margin="1" 
                HorizontalAlignment="Center" VerticalAlignment="Center"
                Width="Auto" Height="Auto"
                Background="Transparent" BorderBrush="Transparent" 
                BorderThickness="0">
                <Image Source="/images/subj.ico" x:Name="img"/>
            </Border>
            <Border 
                x:Name="border2" Margin="1" Background="Transparent" 
                HorizontalAlignment="Center" VerticalAlignment="Center"
                Width="Auto" Height="Auto"
                BorderBrush="Transparent" BorderThickness="0">
                <Grid x:Name="Container"/>
            </Border>
            
            <TextBlock x:Name="label" Text="{Binding Path=Name}" Foreground="Silver"/>
        </StackPanel>
    </Grid>
    </DataObjects:EntityControlBase>
